﻿using System;

namespace Bookvar.ObjectModel.Actions
{
    public abstract class ResourceActionBase : TopicActionBase
    {
        private readonly Resource resource;

        public Resource Resource
        {
            get { return resource; }
        }

        protected ResourceActionBase(Topic topic, Resource resource)
            : base(topic)
        {
            if ( resource == null ) throw new ArgumentNullException( "resource" );

            this.resource = resource;
        }
    }
}
